// register
import register from '../../../scripts/angular/register.js';

// routers
import EntryRouter from '../routers/entry.routers.js';

// services
import EntryService from '../services/entryService.js';

// controllers
import EntrySettingController from '../controllers/entrysetting.controller.js';
import EntryDataSettingController from '../controllers/entrydatasetting.controller.js';
import EntryImportController from '../controllers/entryimport.controller.js';
import EntryBibListController from '../controllers/entrybiblist.controller.js';
import EntryRegisterListController from '../controllers/entryregisterlist.controller.js';

angular
	.module('entry.module', [
		'ngAnimate', 
		'ngSanitize', 
		'ui.router',
	    'ngMessages',  
		'chieffancypants.loadingBar', 
		'ngDialog', 
	    'mgcrea.ngStrap', 
		'oc.lazyLoad',
		'ng-sortable'
	])
	.config(EntryRouter)
	.controller('EntrySettingController', EntrySettingController)
	.controller('EntryDataSettingController', EntryDataSettingController)
	.controller('EntryImportController', EntryImportController)
	.controller('EntryBibListController', EntryBibListController)
	.controller('EntryRegisterListController', EntryRegisterListController)

register('entry.module')
    .factory('EntryService', EntryService);